package com.guofen.dao;

import com.guofen.pojo.SjqCompostProduceFault;
import com.guofen.pojo.SjqCompostProduceInspection;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SjqCompostProduceInspectionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqCompostProduceInspection record);

    int insertSelective(SjqCompostProduceInspection record);

    SjqCompostProduceInspection selectByPrimaryKey(Integer id);

    SjqCompostProduceInspection getlastByName(String equipment_name);

    List<SjqCompostProduceInspection> getlast();

    List<SjqCompostProduceInspection> getlastWithFault();

    int updateByPrimaryKeySelective(SjqCompostProduceInspection record);

    int updateByPrimaryKey(SjqCompostProduceInspection record);

    List<SjqCompostProduceInspection> selectAll();

    List<SjqCompostProduceInspection> selectByDate(@Param("startDate") String startDate,
                                              @Param("endDate") String endDate);
}